package stringManipulations;

public class VoidInteractionWithString {

	public static void addCharacterToString(char c, String s){
		s = s +c;
		System.out.println(s);
	}
	
	public static void main(String[] args) {
		String string = "poo";
		System.out.println(string);
		addCharacterToString('p', string);
		System.out.println(string);
		
		String str = "(foo)";
		System.out.println("Print of str.charAt(s.length()-1):  " + str.charAt(str.length()-1) );
		//System.out.println("Print of str.charAt(s.length()):  " + str.charAt(str.length()) );
	}

}
